﻿using JshRCSWebApi.Infrastructure.Domain.DTO.SysVehicle.VehicleTask;
using JshRCSWebApi.Infrastructure.Domain.DTO.SysVehicle;
using JshRCSWebApi.Service.SysVehicle;
using Microsoft.AspNetCore.Mvc;

namespace JshRCSWebApi.API.Controllers.SysVehicle
{
    public class VehiclePushController : BaseController
    {
        private readonly VehiclePushService _vehiclePushService;
        public VehiclePushController(IHttpContextAccessor httpContextAccessor, VehiclePushService vehiclePushService) : base(httpContextAccessor)
        {
            _vehiclePushService = vehiclePushService;
        }
        /// <summary>
        /// 机器人推送           
        /// </summary>
        /// <param name="requestDTO"></param>
        /// <returns></returns>
        [HttpPost]
        public async Task<ApiResult> robot_push_req(RequestDTO requestDTO)
            => await _vehiclePushService.robot_push_req(requestDTO);
    }
}
